package com.huawei.hms.framework.network.restclient.dnkeeper;

import android.text.TextUtils;
import com.huawei.hms.framework.network.grs.GrsBaseInfo$CountryCodeSource;

public final class RequestHost {
    private String apkName;
    private String dnsFailType = "Unknown Reason";
    private String domainName;
    private String failIP = GrsBaseInfo$CountryCodeSource.UNKNOWN;
    private long time;

    public RequestHost(String str) {
        setDomainName(str);
    }

    public String getDomainName() {
        return this.domainName;
    }

    public void setDomainName(String str) {
        this.domainName = str;
    }

    public String getApkName() {
        return this.apkName;
    }

    public void setApkName(String str) {
        this.apkName = str;
    }

    public String getDnsFailType() {
        return this.dnsFailType;
    }

    public void setDnsFailType(String str) {
        this.dnsFailType = str;
    }

    public String getFailIP() {
        return this.failIP;
    }

    public void setFailIP(String str) {
        if (!TextUtils.isEmpty(str)) {
            this.failIP = str;
        }
    }

    public long getTime() {
        return this.time;
    }

    public void setTime(long j) {
        this.time = j;
    }

    public String toString() {
        return "RequestHost [domainName=" + this.domainName + ", apkName=" + this.apkName + ", dnsFailType=" + this.dnsFailType + ", failIP=" + this.failIP + ", time=" + this.time + "]";
    }
}
